﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BIZ;
using DAL;

namespace SinhNhat
{
    public partial class Article : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ArticleBIZ articleBIZ = new ArticleBIZ();
                ARTICLE article = articleBIZ.getIdForUser(WebUtils.ToGuid(hdID.Value));
                if (article == null)
                {
                    Response.Redirect("/Index.aspx");
                }

                headerTitle.InnerText = article.Title;
                //lblTitle.Text = article.Title;
                lrContent.Text = article.Content;
                //lblCreatedate.Text = article.CreateDate.Value.ToShortDateString();
            }
        }
    }
}